package transfer;

/**
 * This class represents entity from DB. This is used for transferring objects;
 *
 * @author Vadym Gula
 * @author Oleh Tarapata
 */
public class Warehouse {

    private Integer idWarehouse;
    private Address address;
    private String nameWarehouse;
    private Double shipmentRate;
    private Double shipmentSpeed;

    public Warehouse() {
    }

    public Warehouse(Integer idWarehouse, Address address, String nameWarehouse, Double shipmentRate, Double shipmentSpeed) {
        this.idWarehouse = idWarehouse;
        this.address = address;
        this.nameWarehouse = nameWarehouse;
        this.shipmentRate = shipmentRate;
        this.shipmentSpeed = shipmentSpeed;
    }

    public Integer getIdWarehouse() {
        return idWarehouse;
    }

    public void setIdWarehouse(Integer idWarehouse) {
        this.idWarehouse = idWarehouse;
    }

    public Address getAddress() {
        return address;
    }

    public void setAddress(Address address) {
        this.address = address;
    }

    public String getNameWarehouse() {
        return nameWarehouse;
    }

    public void setNameWarehouse(String nameWarehouse) {
        this.nameWarehouse = nameWarehouse;
    }

    public Double getShipmentRate() {
        return shipmentRate;
    }

    public void setShipmentRate(Double shipmentRate) {
        this.shipmentRate = shipmentRate;
    }

    public Double getShipmentSpeed() {
        return shipmentSpeed;
    }

    public void setShipmentSpeed(Double shipmentSpeed) {
        this.shipmentSpeed = shipmentSpeed;
    }
}
